import { doGet, doPost, doDelete } from './request.js'

// 查询商品列表
export function queryGoodsList (data) {
  return doPost('/prdGoods/pageQuery', data)
}

// 查询商品详情
export function queryGoodsDetail(data) {
  return doPost('/prdGoods/getGoodsById', data)
}

// 商品上下架
export function setGoodsIsEnabled(data) {
  return doPost('/prdGoods/setGoodsIsEnabled', data)
}

export function addGoods (data) {
  return doPost('/prdGoods/insert', data)
}

export function updateGoods (data) {
  return doPost('/prdGoods/update', data)
}

export function deleteGoodsById (data) {
  return doPost('/prdGoods/deleteGoodsById', data)
}

